<?php
//Our hook
add_shortcode('tabbed', 'skshort_tabbed');
add_shortcode('tab', 'skshort_tabs');

//Our Funciton
function skshort_tabbed($atts, $content = null) {
    
    //extracts our attrs . if not set set default
    extract(shortcode_atts(array(
    
        'tabs' => 'SKSnotabs'
    
    ), $atts));
    
    if($tabs == 'SKSnotabs') { return; }
    
    //starts our output
    $output = '
    <div class="sktabbed">
            
        <ul class="tabs">';
        
    $myTabs = explode('|', $tabs);
    
    //displays our tabs
    foreach($myTabs as $tab) {
        
        $output .= '<li><a>'.$tab.'</a></li>';
        
    }
    
    //closes our tabs UL
    $output .= '</ul>';
    
    //returns
    return $output.'<ul class="tabbed">'.do_shortcode($content).'</ul></div>';
    
}

//Our Funciton
function skshort_tabs($atts, $content = null) {
    $output = '';
    //returns
    return $output.'<li>'.do_shortcode($content).'</li>';
}

// Call it now
$tinymce_button = new dt_add_mce_button(
    'dt_mce_plugin_shortcode_tabb',
    'tabbed',
    false
);
?>